
#include<iostream>
using namespace std;

class parent
{
public:
	int a = 10;
};


class child : public parent
{
public:
	int b = 20;
};

class child1
{
public:
	int b = 20;
	int a = 10;
};

int main()
{
	cout << sizeof(parent) << endl;
	cout << sizeof(child) << endl;
	cout << sizeof(child1) << endl;
	return 0;
}